﻿<%@ Page Language="C#" MasterPageFile="~/default.master" AutoEventWireup="true" CodeFile="CategoryMap.aspx.cs"
    Inherits="CategoryMap"%>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <h2>
        <%= Resources.Language.Producers %></h2>
    <asp:UpdatePanel ID="upProducers1" runat="server">
        <ContentTemplate>
            <asp:DataList ID="dlProducers" runat="server" RepeatColumns="5" Width="100%" HorizontalAlign="Center">
                <ItemTemplate>
                    <div>
                        <asp:LinkButton ID="lbProducer" runat="server" OnLoad="lbProducer_Load" OnCommand="OnCommand"
                            CommandArgument='<%# Eval("IDproducer")%>' Font-Bold="false"><%# Eval("Name")%></asp:LinkButton>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <h2>
                <%= Resources.Language.Categories %></h2>
            <asp:DataList ID="dlCategoryMap" runat="server" RepeatColumns="2" OnItemDataBound="dlCategoryMap_ItemDataBound" ItemStyle-VerticalAlign="Top"
                RepeatDirection="Horizontal" Width="100%" ItemStyle-Width="50%" >
                <ItemTemplate>
                    <div style="margin:10px">
                        <div style="font-size: 15px;">
                            <a href='<%# Eval("IDcategory")%>,1,1,<%=Resources.Language.Category.ToLower() %>,<%#URLParser.ParseUrl(Eval("Name").ToString()) %>.aspx'>
                                <%# Eval("Name") %>
                            </a>
                        </div>
                        <div id="cont" runat="server">
                        </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
